package cn.kgc.crowdfundingadminspringboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PortalController {
    @RequestMapping("/index")
    public String showIndex() {
        // 从数据库加载页面要显示的数据
        return "index-page";
    }
    @RequestMapping("/admin/to/login/page.html")
    public String toLoginPage() {
        return "admin-login";
    }
}
